home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / XFREE / Makefile < prev    next >
Encoding:
Makefile  |  1995-10-29  |  1.2 KB  |  58 lines

  1. #
  2. # Makefile for SVGA textmode manipulation program, XFREE stuff
  3. #
  4. # Author : Koen Gadeyne (kmg@barco.be)
  5. #
  6.  
  7. # compiled without -Wall: too many warnings...
  8.  
  9. #CFLAGS are imported from top level
  10.  
  11. XFREEINC = -I./common -I./os-support -I./accel/s3 -I./include -I..
  12. XFREECOMPAT = -include xfree_compat.h
  13.  
  14. XFREELIBS = libxf86_hw.a
  15.  
  16. OBJECTS = common_hw/I2061Acal.o common_hw/I2061Aset.o common_hw/I2061Aalt.o \
  17.           common_hw/SC11412.o common_hw/S3gendac.o common_hw/Ti3025clk.o \
  18.           common_hw/ICS2595.o common_hw/CirrusClk.o common_hw/Ch8391clk.o \
  19.           common_hw/IBMRGB.o common_hw/STG1703clk.o common_hw/Ti3026clk.o \
  20.           xfree_compat.o
  21.  
  22. ASMOBJS = common_hw/IODelay.o
  23.  
  24.  
  25. all: $(XFREELIBS) $(OBJECTS) $(ASMOBJS)
  26.  
  27.  
  28. libxf86_hw.a: $(OBJECTS) $(ASMOBJS)
  29.     ar rcs libxf86_hw.a $(OBJECTS) $(ASMOBJS)
  30.  
  31. $(OBJECTS): %.o: %.c
  32.     $(CC) -c $(CFLAGS) $(XFREEINC) $(XFREECOMPAT) $< -o $@
  33.  
  34.  
  35. $(ASMOBJS): %.o: %.S
  36.     $(CC) -c $(CFLAGS) $(XFREEINC) $< -o $@
  37.  
  38. clean:
  39.     rm -f *~ *.o common_hw/*.o *.bak $(XFREELIBS)
  40.     rm -f DEADJOE 
  41.     rm -f `find . -name "*~"`
  42.     
  43. mrproper: clean
  44.     rm -f $(XFREELIBS)
  45.  
  46. depend: .depend
  47.  
  48. .depend::
  49.     gcc -MM $(XFREEINC) $(XFREECOMPAT) *.c common_hw/*.c >.depend
  50.     gcc -MM $(XFREEINC) common_hw/*.S >>.depend
  51.  
  52. #
  53. # include .depend if it exists
  54. #
  55.  
  56. include .depend
  57.  
  58.